package com.ruoyi.wms.strategy;

import com.ruoyi.wms.util.TimeRangeUtils;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 订单趋势统计策略基础类
 */
@Component
public abstract class BaseOrderTrendStrategy implements OrderTrendStrategy {

    protected List<LocalDateTime> getTimeRange(LocalDateTime date, Integer granularity) {
        return TimeRangeUtils.getStatisticTimeRange(date, granularity);
    }
}
